#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>

int main()
{
	int a;
	scanf("%d", &a);
	int i = 1;
	int b = a * a;
	if (a == 1)
	{
		printf("1");
	}
	else if ((a * a) % 2 == 0)
	{
		a = pow(a, 3);
		while (a!=0)
		{
			a = a-((b - i) + (b + i));
			if (a == 0)
				break;
			i += 2;
		}
	}
	else if ((a * a) % 2 == 1)
	{
		a = pow(a, 3);
		a -= b;
		i = 2;
		while (b != 0)
		{
			a = a - ((b - i) + (b + i));
			if (a == 0)
				break;
			i += 2;
		}
	}
	if (a == 0)
	{
		for (int d = b - i; d <= b + i - 2; d += 2)
		{
			printf("%d+",d);
		}
		printf("%d", b + i);
	}
	return 0;
}